package com.ruoyi.data.service.impl;

import com.ruoyi.data.domain.TdataRtWgc;
import com.ruoyi.data.mapper.TdataRtWgcMapper;
import com.ruoyi.data.service.ITdataRtWgcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TdataRtWgcServiceImpl implements ITdataRtWgcService {

    @Autowired
    private TdataRtWgcMapper tdataRtWgcMapper;

    @Autowired
    private ThreadPoolTaskExecutor threadPoolTaskExecutor;

    @Override
    public List<TdataRtWgc> selectRtWgcList(TdataRtWgc record) {
        return tdataRtWgcMapper.selectHtWgcList(record);
    }

    @Override
    public List<TdataRtWgc> selectTxgzList(TdataRtWgc record) {
        return tdataRtWgcMapper.selectTxgzList(record);
    }

    @Override
    public void clear(List<String> roomIds) {
        tdataRtWgcMapper.clear(roomIds);
    }

    @Override
    public void refresh(List<TdataRtWgc> records) {
        if (!records.isEmpty()) {
            tdataRtWgcMapper.refresh(records);
        }
    }

    @Override
    public TdataRtWgc selectByRoomId(String roomId) {
        return tdataRtWgcMapper.selectByRoomId(roomId);
    }

    @Override
    public int updateTimesByRoomId(String roomId) {
        return tdataRtWgcMapper.updateTimesByRoomId(roomId);
    }

    @Override
    public void insert(TdataRtWgc record) {
        tdataRtWgcMapper.insert(record);
    }

    @Override
    public void insertSelective(TdataRtWgc record) {
        tdataRtWgcMapper.insertSelective(record);
    }

    @Override
    public void deleteByRoomIds(List<String> roomIds) {
        tdataRtWgcMapper.deleteByRoomIds(roomIds);
    }
}
